public class Test {
    public static void main(String[] args) {
        MyQueue myQueue=new MyQueue();
        //入队操作
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        //获取队头元素值
        System.out.println("当前队头元素值为"+myQueue.peek());
        System.out.println("*****************************");
        //出队操作
        System.out.println("出队元素值为"+myQueue.poll());
        System.out.println("当前队头元素值为"+myQueue.peek());
        System.out.println("*****************************");
        //判空操作
        System.out.println(myQueue.isEmpty());

    }
}